ifeq ($(CFG_SDK_EXPORT_FLAG),)
    SDK_DIR := $(shell cd $(CURDIR)/../../../.. && /bin/pwd)
endif

include $(SDK_DIR)/build/base.mk
include $(SDK_DIR)/source/gmp/modules/isp/arch.mk


.PHONY: all clean
all: kernel user extdrv

clean: kernel_clean user_clean extdrv_clean

.PHONY: kernel kernel_clean
kernel:
	$(AT)$(MAKE) -C kernel

kernel_clean:
	$(AT)$(MAKE) -C kernel clean

.PHONY: user user_clean
user:
	$(AT)$(MAKE) -C user

user_clean:
	$(AT)$(MAKE) -C user clean

.PHONY: extdrv extdrv_clean
extdrv:
	$(AT)$(MAKE) -C ext_drv/$(CHIPARCH)

extdrv_clean:
	$(AT)$(MAKE) -C ext_drv/$(CHIPARCH) clean
